package net.zjitc.service.Impl;

import net.zjitc.mapper.TypeMapper;
import net.zjitc.pojo.Types;
import net.zjitc.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/5/28 8:31
 */
@Service
@Transactional
public class TypeServiceImpl implements TypeService {
    @Autowired
    TypeMapper typeMapper;

    @Override
    public List<Types> findAll() {
        return typeMapper.findAll();
    }
}
